package com.daka.service.qnzyz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Authoer:chunyang
 * ProjectName:Volunteer
 * Date: 2015/7/14.
 * Description:
 */
@Component
public class BHConstant
{

    public String BasePath = "";
    public int TOKEN_TIMEOUT =	1003;//token已超时

    public  String CLIENTID = ConfigUtil.clientId;
    public  String PUBLICKEY = ConfigUtil.pubKey;
    public  String ROOTPATH = "http://test.dakaqi.cn:3030/up/";

    //public static  String CLIENTID = "100009";
    //public static  String PUBLICKEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0FhAal1diWCkErdynsiCaw9yKuNTs7OQwoP4rYivCNXe2bgATYRrSXNih3V+UzCdIcKZr/YI2zXOdNHwxJmORmqd+vDcDm7PeFlqWHX4tiMAEiHfvJ6r3rXW2oYhNeajvX/TqPmGF/sKsIrmFitbQfzMVjQ8RiCwDIkqRed6seQIDAQAB";

    //public static String CLIENTID = "1003";
    //public static String PUBLICKEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCDD9BJZt2vKcpv8VLYzBY3GNvcHKPI721gfOax41TUu1WTmEZoYuYMkhLypeWeQLQktXsdCbEb9drugnMelwYTpJd4X8Dzu1g5Cr9cri5PTgrqX7RgyghKlbOmdCrKeOUV/qTp9QfOdJ1v2tY79Im0bkMR/rir0zmD7mcBwRHW8wIDAQAB";

    public String checkNetWork()
    {
        String WebRoot = "http://test.dakaqi.cn:3030/up/";
        if(WebRoot.contains("test.dakaqi.cn") == true)
            BasePath = "http://192.168.2.16:81";
        else
            BasePath = "https://open.qnzyz.org.cn";

        return BasePath;
    }
}
